package com.acme;


public class Test {
	public static void main(String[] args) {
		int v1 = 3;
		//byte v2 = v1;
		//narrowing converting int into byte, need a casting
		byte v2 = (byte) v1;
		System.out.println(v2);
		v1 = 256;
		//byte v3 = v1;
		//narrowing converting int into byte, need a casting
		byte v3 = (byte) v1;
		System.out.println(v3);
		int v4 = 's';
		System.out.println(v4);
		
		byte v5 = 115;
		if (v5 == 's') {
			System.out.println("Equals");
		}
		
		//converting int into double, print double 
		System.out.println((double)4);
		
		/*int 1 is converting into double before adding, the result of operation is double
		 *print the double result of adding
		 */
		double d = 5;
		System.out.println(d + 1);
		
		//boolean b = v4;
		//in java there are no converting non-boolean types into boolean, we need to use a boolean value
		boolean b = true;
		
		//short v6 = "short";
		/*in java there are no converting string into short, we need to use a char with casting because
		 *converting char into short is not widening
		 */
		short v6 = (short)'s';
		
		//float v7 = 3.67;
		//narrowing converting double into float, need to use float literal
		float v7 = 3.67f;
		
		float v9 = 3;
		//there is no compilation error because there is widening converting int into float
		
		//int v8 = v7;
		//narrowing converting float into int, need a casting
		int v8 = (int)v7;
		
		//int array[] = new double["27"];
		/*the size of array is string now, we need to use int;
		 *array must be int or double
		 */
		int array[] = new int[27];
		
		
	}
}
